from flask import Flask,request
# from werkzeug.wrappers import request
# import flask
 
app=Flask(__name__)
from config import Config
app.config.from_object(Config)

@app.route('/',methods=['POST','GET']) 

def newsM():
    if request.method=="POST":
        username=request.form.get('username')
        return username
    else:
        userid=request.args.get('userid')
        name=request.args.get('name')
        return name

if __name__ == '__main__':
    app.run()
    




